From rhurlin at gwdg.de  Sun Sep 25 12:08:25 2005
From: rhurlin at gwdg.de (Rainer Hurling)
Date: Sun, 25 Sep 2005 12:08:25 +0200
Subject: [Rd] FreeBSD 7.0-CURRENT and R-2.2.0 alpha
In-Reply-To: <Pine.LNX.4.61.0509110749100.24002@gannet.stats>
References: <4322B766.10803@gwdg.de>
	<Pine.LNX.4.61.0509110749100.24002@gannet.stats>
Message-ID: <43367719.6010403@gwdg.de>

As I said before I experience difficulties to evaluate what configure 
has found.

The place in R's config.log, where 'cpow' fails, sais:

------------------------
configure:32656: checking for cpow
configure:32721: gcc -o conftest -g -O2 -D__NO_MATH_INLINES 
-I/usr/local/include -L/usr/local/lib conftest.c -lm  >&5
conftest.c:165: warning: conflicting types for built-in function 'cpow'
/var/tmp//cc4mUk2D.o(.text+0x14): In function `main':
/usr/local/R-beta/conftest.c:189: undefined reference to `cpow'
/var/tmp//cc4mUk2D.o(.data+0x0):/usr/local/R-beta/conftest.c:188: 
undefined reference to `cpow'
configure:32727: $? = 1
configure: failed program was:
| /* confdefs.h.  */
[...]
------------------------

It is almost the same for the other references. If desired, I can send 
config.log.



In FreeBSD's '/usr/include' I found the header-file 'tgmath.h' which 
defines the following:

#define	pow(x, y)	__tg_impl_full(x, x, y, pow, powf, powl,\
			    cpow, cpowf, cpowl, x, y)
#define	carg(x)		__tg_simple(x, carg)

Up to now I have no idea, where the rest (clog, cexp, csqrt ...) is 
defined in FreeBSD.


I am not familiar with configure scripts, autoconf and automake. So I am 
afraid I need more guidance to progress.

Rainer Hurling



 > Prof Brian Ripley wrote:

 > These were found by AC_CHECK_FUNCS (please confirm what configure said)
 > so most likely some macro needs to be set or header included.
 >
 > Could you please find out how configure managed to find cpow etc when
 > they appear not to be in libc/libm?



[Rd] FreeBSD 7.0-CURRENT and R-2.2.0 alpha
Rainer Hurling