problem compiling R-1.6.1 on WinNT: pcre
Uwe, Got it now. The problem might be the pcre packaging. When I tried to download it, the site at UK was unavailable, so I grabbed pcre-3.9-src.zip from sourceforge instead. Apparently that's at least packaged a bit differently from pcre-3.9.tar.gz at the site mentioned in the INSTALL file. Maybe the wording about the pcre source in the INSTALL file could be a bit more stringent? Cheers, Andy -----Original Message----- From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de] Sent: Saturday, November 02, 2002 11:10 AM To: Liaw, Andy Cc: 'r-help at stat.math.ethz.ch' Subject: Re: [R] problem compiling R-1.6.1 on WinNT: pcre
"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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================== -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._