[R] Problems building from sources

rkevinburton at charter.net rkevinburton at charter.net
Tue Feb 16 23:09:58 CET 2010


I am trying to build R-2.9.2 from source on a Windows 7 machine. I have installed all of the requisite software and followed the instructions. I also could have sworn that I had a successful build. But now I get the following error.

gcc -std=gnu99 -shared -s -mwindows -o R.dll R.def console.o dataentry.o dynload
.o edit.o editor.o embeddedR.o extra.o opt.o pager.o preferences.o psignal.o rho
me.o rt_complete.o rui.o run.o shext.o sys-win32.o system.o dos_wglob.o e_pow.o
malloc.o ../main/libmain.a ../appl/libappl.a ../nmath/libnmath.a getline/gl.a ..
/extra/xdr/libxdr.a ../extra/pcre/libpcre.a ../extra/bzip2/libbz2.a ../extra/int
l/libintl.a ../extra/trio/libtrio.a ../extra/tzone/libtz.a dllversion.o -L. -lgf
ortran -lRblas -L../../bin -lRzlib -lRgraphapp -lRiconv -lcomctl32 -lversion
c:/rtools/mingw/bin/../lib/gcc/mingw32/4.2.1-sjlj/../../../libmingwex.a(mingw_sn
printf.o):mingw_snprintf.c:(.text+0x1970): multiple definition of `snprintf'
../extra/trio/libtrio.a(compat.o):compat.c:(.text+0x30): first defined here
c:/rtools/mingw/bin/../lib/gcc/mingw32/4.2.1-sjlj/../../../libmingwex.a(mingw_sn
printf.o):mingw_snprintf.c:(.text+0x170): multiple definition of `vsnprintf'
../extra/trio/libtrio.a(compat.o):compat.c:(.text+0x20): first defined here
collect2: ld returned 1 exit status
make[3]: *** [R.dll] Error 1
make[2]: *** [../../bin/R.dll] Error 2
make[1]: *** [rbuild] Error 2
make: *** [all] Error 2

It seems like vsnprint and snprintf are multiply defined. Any ideas?

Kevin

---- Dimitri Shvorob <dimitri.shvorob at gmail.com> wrote: 
> 
> Now that we have a reproducible example... ;)
> -- 
> View this message in context: http://n4.nabble.com/Problems-with-boxplot-in-ggplot2-qplot-tp1555338p1557994.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list