This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libgfortran,patch] C99 complex cleanup


> /farm/dje/src/src/libgfortran/intrinsics/c99_functions.c:565: error: redefinition of 'clog'
> /usr/include/complex.h:235: error: previous definition of 'clog' was here

It appears that AIX has the following in /usr/include/complex.h:

    static double complex clog(double complex z)
    {
        return (__clog(z));
    }

So, the configure check for clog in libm fails (there is no clog in
the library, only __clog) while clog is actually provided by the
system (hence the error). I didn't know that kind of thing was allowed
(if it is, what are the libm tests worth?). If someone can help
replacing the tests such as

AC_CHECK_LIB([m],[clogf],[AC_DEFINE([HAVE_CLOGF],[1],[libm includes clogf])])

by another more apropriate test, then of we go. Otherwise, the patch
should be reverted.

FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]