R-alpha: 0.15: LIBSETUP still contains '-M mapfile' which breaks library(eda)

Martin Maechler (maechler@stat.math.ethz.ch)
Fri, 20 Dec 96 09:11:31 +0100


Date: Fri, 20 Dec 96 09:11:31 +0100
Message-Id: <9612200811.AA09951@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: R-testers mailing list <R-testers@stat.math.ethz.ch>
Subject: R-alpha: 0.15: LIBSETUP still contains '-M mapfile' which breaks library(eda)

For me (Solaris 2.5), the buglet in 'configure' is still lurking somewhere...

src/library/LIBSETUP  which is produced by configure from LIBSETUP.in
still contains the line (line # 15)
		(cd ${lib}/${dir}; make CC="gcc" CFLAGS="-I../../../include -O -fpic" SHLIBLDFLAGS="-G -z text -M mapfile" FC="" FFLAGS="")

where one has to delete the  ' -M mapfile'
in order for eda/src/eda.so to be made (in order to have  library(eda)
work)...

-------
When I use fortran (setting 'FC=' in config.site  instead of 'FC=no'),
the 'mva' library code "cannot" be linked properly.
'ld' gives the following error messages:
 ld> Text relocation remains			      referenced
 ld>     against symbol		    offset	in file
 ld> <unknown>                           0x88      	hclust.o
 ld> <unknown>                           0x8c      	hclust.o
 ld> ....
 ld> ioffset_                            0x240     	hclust.o
 ld> ....
 ld> .mul                                0x9a4     	hclust.o
 ld> .mul                                0x9b8     	hclust.o
 ld> ld: fatal: relocations remain against allocatable but non-writable sections

	I tried other version of the linking command,
trying to use the C compiler or 'f77' as linker, but it never worked.
But then, I'm not really an expert in linking these things.
	Probably hclust.f has to COMPILED with an extra switch such as to be
'relocatable'.

Resorting to 'src-c' instead of 'src' "solved the problem".

--------------

Also note that in order to specify a non-default C compiler,
you have to define 'CC=.....' in  config.site.
	[[ --> maybe this should be remarked in  'INSTALL' ]]
The global environment variable CC is no longer used (since 0.14 or even
earlier). 

--------------------------------------------------------
Thanks a lot for your Christmas present, Robert & Ross!
--------------------------------------------------------

Martin Maechler <maechler@stat.math.ethz.ch>		 <><
Seminar fuer Statistik, SOL F5
ETH (Federal Inst. Technology)	8092 Zurich	 SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1086
http://www.stat.math.ethz.ch/~maechler/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-