R-alpha: Segmentation fault

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Mon, 2 Dec 1996 13:16:15 +1300 (NZDT)


From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Date: Mon, 2 Dec 1996 13:16:15 +1300 (NZDT)
Message-Id: <199612020016.NAA16570@stat13.stat.auckland.ac.nz>
To: jellis@uottawa.ca
Subject: R-alpha: Segmentation fault
In-Reply-To: <32A241C7.2793@uottawa.ca>

I have configured and built 0.14 on Linux 2.0.26 without a hitch.

The only thing that should have changed from 0.13 to 0.14 is the way
in which the flags for compiling and linking shared libraries are
determined.  0.14 tries to use xmkmf and a fake Imakefile to do this.

In src/main/Makefile you should see the definitions

CC=gcc
CFLAGS=-g -O -I../include
LDCMD=gcc
DLLFLAGS=-rdynamic
PICFLAGS=-fpic
SHLIBLDFLAGS=-shared
LIBS=-lf2c -ldl -lreadline -ltermcap -lm
X_CFLAGS= -I/usr/local/X11R6/include
X_LIBS= -L/usr/local/X11R6/lib -lX11
X_EXTRA_LIBS=
X_PRE_LIBS= -lSM -lICE
FC=

The thing which miight cause a problem is

DLLFLAGS=-rdynamic

You should also compile your library code with the -fpic option

gcc -fpic ...

and load it with

ld -shared ...

Is any of this responsible?
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-