[Rd] bin/exec/R coredumps (PR#14177)
Full_Name: Jens Elkner Version: 2.10.1 OS: Solaris Submission from: (NULL) (87.188.113.172) elkner.idev2 elkner/build/R-2.10.1 > bin/exec/R -e Segmentation fault (core dumped) elkner.idev2 elkner/build/R-2.10.1 > dbx bin/exec/R core For information about new features see `help changes' To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc Reading R core file header read successfully Reading ld.so.1 Reading libR.so Reading libRblas.so Reading libc.so.1 Reading libm.so.2 Reading libreadline.so.5 Reading libpcre.so.0.0.0 program terminated by signal SEGV (no mapping at the fault address) 0xfd7fff21fb50: strlen+0x0030: pcmpeqb (%rsi),%xmm0 Current function is Rf_initialize_R (optimized) 331 if(strlen(cmdlines) + strlen(*av) + 2 <= 1) { dbx<1> where [1] strlen(0x0, 0x0, 0x, 0x0, 0x, 0x3), at 0xfd7fff21fb50 =>[2] Rf_initialize_R(ac = ???, av = ???) (optimized), at 0xfd7fef252eb0 (line ~331) in "system.c" [3] main(ac = ???, av = ???) (optimized), at 0x400e0a (line ~32) in "Rmain.c" dbx<2> __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] rgl: bogus configure[.ac] (PR#14183)
Full_Name: Jens Elkner Version: 2.10.1 OS: Solaris Submission from: (NULL) (141.44.24.14) The configure.ac is bogus, since it does not include additional library pathes at the right place and thus fails. E.g.: $R_HOME/bin/R CMD INSTALL -l $PROTO/R/library \ --configure-args='--with-gl-includes=/usr/X11/include/NVIDIA --with-gl-libs=/usr/X11/lib/NVIDIA/amd64' $TMPBUILD And thus configure tries: cc ... -lGL -L/usr/X11/lib/NVIDIA/amd64 which obviously fails: the path needs to be placed before -l... So the correct way is to add the path to LD_FLAGS instead of LIBS. To get the path at the correct place into the to PKG_LIBS limitted Makevars, one needs to add the path, when the LIB expansion has been done. Suggested patch: --- rgl/configure.ac.orig Mon Feb 2 14:31:24 2009 +++ rgl/configure.acTue Jan 12 06:16:52 2010 @@ -157,9 +157,12 @@ AC_ARG_WITH(gl-libs, [ --with-gl-libs=DIR specify location of OpenGL libs], -[LIBS="${LIBS} -L${withval}"] +[LDFLAGS="${LDFLAGS} -L${withval}" +L_LIB="-L${withval}" +] ) + AC_ARG_WITH(gl-libname, [ --with-gl-libname=NAME specify Library name (defaults to "GL")], [lGL=${withval}], [lGL=GL] @@ -179,6 +182,9 @@ if test "x$this" != xyes; then AC_ERROR([missing required library ${lGLU}]) fi +if test x$L_LIB != x; then + LIBS="${L_LIB} ${LIBS}" +fi ## --- FTGL -- __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel