Full_Name: Eric van Gyzen Version: 1.6.2 OS: FreeBSD 5.0-RELEASE i386 Submission from: (NULL) (152.3.22.120) When compiling R (versions 1.6.1 and 1.6.2), I get the following messages: dumping R code in package 'methods' Fatal error: The X11 shared library could not be loaded. The error was /tmp/R-1.6.2/modules/R_X11.so: Undefined symbol "R_GlobalEnv" The compiler is GCC 3.2.1. I'll be glad to provide more information via email. Thanks in advance for any help! Eric
R won't compile on FreeBSD 5.0 (PR#2562)
5 messages · vangyzen@stat.duke.edu, Peter Dalgaard, Luke Tierney +1 more
vangyzen@stat.duke.edu writes:
Full_Name: Eric van Gyzen Version: 1.6.2 OS: FreeBSD 5.0-RELEASE i386 Submission from: (NULL) (152.3.22.120) When compiling R (versions 1.6.1 and 1.6.2), I get the following messages: dumping R code in package 'methods' Fatal error: The X11 shared library could not be loaded. The error was /tmp/R-1.6.2/modules/R_X11.so: Undefined symbol "R_GlobalEnv" The compiler is GCC 3.2.1. I'll be glad to provide more information via email. Thanks in advance for any help!
Hmm. You might need to get a FreeBSD expert in on this. I guess that it is not the methods package that has the problem; that is just the first time anything tries to run the newly built R binary. R_GlobalEnv is defined in R.bin so the problem is that the dyn.load mechanism is not able to resolve this. A bit of Google'ing suggests that a -export-dynamic (or so) flag might have fallen out of the link command for R.bin.
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
On 19 Feb 2003, Peter Dalgaard BSA wrote:
vangyzen@stat.duke.edu writes:
Full_Name: Eric van Gyzen Version: 1.6.2 OS: FreeBSD 5.0-RELEASE i386 Submission from: (NULL) (152.3.22.120) When compiling R (versions 1.6.1 and 1.6.2), I get the following messages: dumping R code in package 'methods' Fatal error: The X11 shared library could not be loaded. The error was /tmp/R-1.6.2/modules/R_X11.so: Undefined symbol "R_GlobalEnv" The compiler is GCC 3.2.1. I'll be glad to provide more information via email. Thanks in advance for any help!
Hmm. You might need to get a FreeBSD expert in on this. I guess that it is not the methods package that has the problem; that is just the first time anything tries to run the newly built R binary. R_GlobalEnv is defined in R.bin so the problem is that the dyn.load mechanism is not able to resolve this. A bit of Google'ing suggests that a -export-dynamic (or so) flag might have fallen out of the link command for R.bin.
That sounds right. It may be that for some reason on this setup you need to give gcc something like -Wl,-E instead of -export-dynamic in the linker flags. luke
Luke Tierney University of Iowa Phone: 319-335-3386 Department of Statistics and Fax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: luke@stat.uiowa.edu Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
Peter Dalgaard BSA writes:
vangyzen@stat.duke.edu writes:
Full_Name: Eric van Gyzen Version: 1.6.2 OS: FreeBSD 5.0-RELEASE i386 Submission from: (NULL) (152.3.22.120) When compiling R (versions 1.6.1 and 1.6.2), I get the following messages: dumping R code in package 'methods' Fatal error: The X11 shared library could not be loaded. The error was /tmp/R-1.6.2/modules/R_X11.so: Undefined symbol "R_GlobalEnv" The compiler is GCC 3.2.1. I'll be glad to provide more information via email. Thanks in advance for any help!
Hmm. You might need to get a FreeBSD expert in on this. I guess that it is not the methods package that has the problem; that is just the first time anything tries to run the newly built R binary. R_GlobalEnv is defined in R.bin so the problem is that the dyn.load mechanism is not able to resolve this. A bit of Google'ing suggests that a -export-dynamic (or so) flag might have fallen out of the link command for R.bin.
Actually ... the configure code has
freebsd[3-4].*)
main_ldflags="-export-dynamic"
shlib_ldflags="-shared"
;;
so does not cover freebsd5 --- maybe this should be changed?
-k
Kurt Hornik wrote:
Peter Dalgaard BSA writes:
vangyzen@stat.duke.edu writes:
Full_Name: Eric van Gyzen Version: 1.6.2 OS: FreeBSD 5.0-RELEASE i386 Submission from: (NULL) (152.3.22.120) When compiling R (versions 1.6.1 and 1.6.2), I get the following messages: dumping R code in package 'methods' Fatal error: The X11 shared library could not be loaded. The error was /tmp/R-1.6.2/modules/R_X11.so: Undefined symbol "R_GlobalEnv" The compiler is GCC 3.2.1. I'll be glad to provide more information via email. Thanks in advance for any help!
Hmm. You might need to get a FreeBSD expert in on this. I guess that it is not the methods package that has the problem; that is just the first time anything tries to run the newly built R binary. R_GlobalEnv is defined in R.bin so the problem is that the dyn.load mechanism is not able to resolve this. A bit of Google'ing suggests that a -export-dynamic (or so) flag might have fallen out of the link command for R.bin.
Aha! That would explain the rather terse dynamic symbol table in R.bin...
Actually ... the configure code has
freebsd[3-4].*)
main_ldflags="-export-dynamic"
shlib_ldflags="-shared"
;;
so does not cover freebsd5 --- maybe this should be changed?
Yep. Changing the range from 3-4 to 3-5 fixed it. Thanks for the fast, accurate help, gentlemen. Eric