Re: R-alpha: More compilation problems

Woodrow Setzer (wsetzer@mindspring.com)
Mon, 13 Jan 1997 08:52:41 -0500 (EST)


Date: Mon, 13 Jan 1997 08:52:41 -0500 (EST)
From: Woodrow Setzer <wsetzer@mindspring.com>
To: Anthony Ledford <mas2al@mcs.surrey.ac.uk>
Subject: Re: R-alpha: More compilation problems
In-Reply-To: <Pine.SOL.3.95.970112132142.1189A-100000@aragorn.mcs.surrey.ac.uk>

The problem is a name conflict between a system routine to take the 
absolute value of a variable of type "long long", and the symbol defined 
in "plot.c".

I posted a solution to this earlier this month, and I don't have a copy 
of it here, now, so this is from memory:  You need to add -DNO_LONG_LONG 
to CFLAGS for compilation (look in math.h for the declaration of 
"llabs".  It will be within a conditional block, so that the declaration 
of llabs occurs if certain variables are defined or undefined.  That will 
tell you what you need to define.

--
Woody Setzer
wsetzer@mindspring.com

On Sun, 12 Jan 1997, Anthony Ledford wrote:

> I am trying to build R v0.15 on a SPARC 20 running Solaris.
> Configure seems to work without fault, but the make fails at 
> the following point:
> 
> gcc -g -O -I../include   -c plot.c -o plot.o
> plot.c:1539: `llabs' redeclared as different kind of symbol
> /opt/GNUgcc270/lib/gcc-lib/sparc-sun-solaris2.4/2.7.0/include/stdlib.h:169:
> previous declaration of `llabs'
> plot.c:1539: warning: `llabs' was declared `extern' and later `static'
> make[2]: *** [plot.o] Error 1
> make[2]: Leaving directory
> `[ EDITED FOR BREVITY ] RHOMEv0.15/src/main'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory
> `[ EDITED FOR BREVITY ] RHOMEv0.15/src'
> make: *** [install] Error 2
> 
> Any ideas? 
> Anthony.
> ---
> Dr Anthony Ledford.			26AA21 Department of Mathematical
> Email	: A.Ledford@surrey.ac.uk	and Computing Sciences,
> Phone   : +44 (0)1483 - 300800 x2643	University of Surrey, 
> Fax	: +44 (0)1483 - 259385		Guildford, Surrey, GU2 5XH, UK.
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-