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 ------------------------------------------------------------------------------ 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 in 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
problem compiling R-1.6.1 on WinNT: pcre
3 messages · Liaw, Andy, Ko-Kang Kevin Wang, Uwe Ligges
Hi, ----- Original Message ----- From: "Liaw, Andy" <andy_liaw at merck.com> To: <r-help at stat.math.ethz.ch> Sent: Saturday, November 02, 2002 5:07 PM Subject: [R] problem compiling R-1.6.1 on WinNT: pcre
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.
Have you checked if the PCRE is in your PATH? Cheers, Kevin ------------------------------------------------ Ko-Kang Kevin Wang Post Graduate PGDipSci Student Department of Statistics University of Auckland New Zealand www.stat.auckland.ac.nz/~kwan022 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._