[R] problem compiling R-1.6.1 on WinNT: pcre

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Nov 2 17:09:43 CET 2002


"Liaw, Andy" wrote:
> 
> Dear R-help,
> 
> (This is the first time I tried compiling 1.6.x from source on WinNT4, so
> please bear with me...)
> 
> I tried following the instruction in src/gnuwin32/INSTALL as closely as I
> could, but encounter the following errors at the make step.  Can some kind
> soul please help?  I'm using pcre-3.9 and MinGW-2.0.0-3.  I checked and
> libRpcre.a _is_ in src/extra/pcre.
> 
> TIA,
> Andy
> 
> ...
> gcc  --shared -s -mwindows -o R.dll R.def R.a malloc.o libmain.a libappl.a
> libmath.a ga.a gl.a xdr.a ../extra/zlib/libz.a ../extra/pcre/libRpcre.a
> ../extra/bzip2/libbz2.a dllversion.o -L. -lg2c -lRblas -lcomctl32 -lversion
> libmain.a(pcre.o)(.text+0x108):pcre.c: undefined reference to `pcre_compile'
> libmain.a(pcre.o)(.text+0x16e):pcre.c: undefined reference to `pcre_exec'
> libmain.a(pcre.o)(.text+0x19d):pcre.c: undefined reference to `pcre_free'
> libmain.a(pcre.o)(.text+0x499):pcre.c: undefined reference to `pcre_compile'
> libmain.a(pcre.o)(.text+0x4bb):pcre.c: undefined reference to `pcre_info'
> libmain.a(pcre.o)(.text+0x587):pcre.c: undefined reference to `pcre_exec'
> libmain.a(pcre.o)(.text+0x603):pcre.c: undefined reference to `pcre_free'
> libmain.a(pcre.o)(.text+0x611):pcre.c: undefined reference to `pcre_free'
> libmain.a(pcre.o)(.text+0x6ca):pcre.c: undefined reference to `pcre_exec'
> libmain.a(pcre.o)(.text+0x882):pcre.c: undefined reference to `pcre_compile'
> libmain.a(pcre.o)(.text+0x909):pcre.c: undefined reference to `pcre_exec'
> libmain.a(pcre.o)(.text+0x939):pcre.c: undefined reference to `pcre_free'
> ../extra/pcre/libRpcre.a(get.o)(.text+0x9e):get.c: undefined reference to
> `pcre_malloc'
> ../extra/pcre/libRpcre.a(get.o)(.text+0x12c):get.c: undefined reference to
> `pcre_free'
> ../extra/pcre/libRpcre.a(get.o)(.text+0x17a):get.c: undefined reference to
> `pcre_malloc'
> ../extra/pcre/libRpcre.a(get.o)(.text+0x1cc):get.c: undefined reference to
> `pcre_free'
> ../extra/pcre/libRpcre.a(maketables.o)(.text+0x20):maketables.c: undefined
> reference to `pcre_malloc'
> ../extra/pcre/libRpcre.a(study.o)(.text+0x64e):study.c: undefined reference
> to `pcre_malloc'
> make[1]: *** [R.dll] Error 1
> make[1]: Leaving directory `/cygdrive/g/Rbuild/R-1.6.1/src/gnuwin32'
> make: *** [all] Error 2

Works for me (R-1.6.1, pcre 3.9, Mingw 2.0.0-3, WinNT 4.0): 
Complete build of R, its (recommended) packages, the installer, as well
as a successful 'make fullcheck'.

You have to follow the instructions in INSTALL *_exactly_* (e.g.
collecting _all_ the tools, setting _all_ the paths in the _right
order_, ...).

Hint: Read each line carefully and mark it as "done", if the
instructions are fullfilled exactly.
There will be at least one line (I guess) you cannot mark.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list