This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Problems compiling GSL on a Mac OS X
- From: Rodney Sparapani <rsparapa at mcw dot edu>
- To: gsl-discuss at sources dot redhat dot com
- Cc: Daniel T Konkle <daniel dot konkle at dynetics dot com>
- Date: Tue, 10 Jun 2003 20:26:28 -0500
- Subject: Re: Problems compiling GSL on a Mac OS X
Daniel T Konkle writes:
I'm in the process of trying to get the GSL libraries to compile &
run on
an PowerMac G4 running Mac OS X 10.2.6
During compilation, I get this error message & I was hoping someone
could
tell me what to do to fix this warning message.
/usr/include/architecture/ppc/math.h:106: warning: redefinition of
macro isinf
../config.h:192: warning: this is the location of the previous
definition
/usr/include/architecture/ppc/math.h:111: warning: redefinition of
macro isnan
../config.h:196: warning: this is the location of the previous
definition
The configure script looks for isinf(). If it doesn't find it, it can
get confused and tries to #define isinf(x) gsl_isinf(x). Here is what
is currently in configure.in:
AC_TRY_COMPILE([#define isinf /* */
#include <math.h>],[{}],[],[
AC_CHECK_FUNCS(isinf, ,[
AC_MSG_CHECKING([for isinf with <math.h>])
AC_TRY_LINK([#include <math.h>], [float f = 0.0;
isinf(f)],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ISINF)],
AC_MSG_RESULT(no))])])
--
Brian
I don't understand this. Here's what /usr/include/math.h says:
#if defined (__ppc__)
#include "architecture/ppc/math.h"
#elif defined (__i386__)
#include "architecture/i386/math.h"
#else
#error Unknown architecture
#endif
Could it be that __ppc__ is not defined by autoconf/automake when you
configure, but is defined when you make?