[Moved over from R-devel, because I think it belongs here - MTP]
I don't know about problem 1, but problem 2 is caused by you mixing
libraries compiled with gcc and egcs. So you should either
1) Remove egcs-1.1 and any other bleeding edge stuff you have installed
and go back to a standard RedHat 5.2 installation, or
2) Upgrade to RedHat 6.0.
There is a known hack for this problem which involves preloading a small
shared library containing __register_frame_info, __deregister_frame_info
__unregister_frame_info as null functions. I wouldn't do that myself
though.
Martyn
On 17-May-99 Michael Hohn wrote:> Hello,
>
> I just finished installing R-0.64.1 on my linux machine (using kernel
> 2.0.36 under red hat 5.2, and
> gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
> )
>
> The two problems I had:
>
> 1. ./configure --with-readline --with-x --prefix=/usr/local
> ran to a point, then gave up with
> ...
> checking return type of signal handlers... void
> checking for working const... yes
> checking size of long... 0
> Size of long must be at least 32 bits
>
> Manual modification of ./configure to use 4 bytes fixed this problem.
> A manual run of the autoconf C program
>
>#include "confdefs.h"
>#include <stdio.h>
> main()
> {
> FILE *f=fopen("conftestval", "w");
> if (!f) exit(1);
> fprintf(f, "%d\n", sizeof(long));
> exit(0);
> }
>
> produced the correct result, so
> I don't know where this zero size problem came from.
>
>
> 2. After the final linking of R via
>
> g77 -o ../../bin/R.binary arithmetic.o array.o attrib.o bind.o
> builtin.o character.o coerce.o colors.o complex.o context.o cov.o
> cum.o debug.o deparse.o deriv.o devices.o dotcode.o dstruct.o
> duplicate.o envir.o errors.o eval.o format.o fourier.o gram.o
> gram-ex.o graphics.o iosupport.o list.o logic.o main.o match.o
> memory.o model.o names.o objects.o optimize.o options.o par.o paste.o
> platform.o plot.o plot3d.o plotmath.o print.o printarray.o
> printvector.o printutils.o random.o relop.o saveload.o scan.o seq.o
> sort.o source.o split.o subassign.o subscript.o subset.o summary.o
> unique.o util.o version.o ../unix/libunix.a ../appl/libappl.a
> ../nmath/libmath.a -lSM -lICE -L/usr/X11R6/lib -lX11 -lreadline -lz
> -ldl -lncurses -lm
>
> the binary would exit with the error
>
> /usr/local/lib/R-0.64.1/bin/R.binary: error in loading shared
> libraries
> : undefined symbol: __register_frame_info
>
> when run.
>
> This symbol is defined in libstdc++. A manual link via
>
> g77 -o ../../bin/R.binary /usr/lib/libstdc++.so arithmetic.o array.o
> attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o
> context.o cov.o cum.o debug.o deparse.o deriv.o devices.o dotcode.o
> dstruct.o duplicate.o envir.o errors.o eval.o format.o fourier.o
> gram.o gram-ex.o graphics.o iosupport.o list.o logic.o main.o match.o
> memory.o model.o names.o objects.o optimize.o options.o par.o paste.o
> platform.o plot.o plot3d.o plotmath.o print.o printarray.o
> printvector.o printutils.o random.o relop.o saveload.o scan.o seq.o
> sort.o source.o split.o subassign.o subscript.o subset.o summary.o
> unique.o util.o version.o ../unix/libunix.a ../appl/libappl.a
> ../nmath/libmath.a -lSM -lICE -L/usr/X11R6/lib -lX11 -lreadline -lz
> -ldl -lncurses -lm
>
> produced a working executable.
>
>
>
> Any ideas on the source of these two problems?
>
> Cheers,
> Mike
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._