This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
can't compile dejagnu-980528 to run egcs testsuites
- To: egcs at cygnus dot com
- Subject: can't compile dejagnu-980528 to run egcs testsuites
- From: Lou Langholtz <ldl at chpc dot utah dot edu>
- Date: Thu, 27 Aug 1998 13:53:54 -0600
Compiling dejagnu on a Linux 2.1.24 TurboLinux for PowerPC box results
in the following conflict:
tclMtherr.c: In function `matherr':
tclMtherr.c:76: argument `xPtr' doesn't match prototype
/usr/include/math.h:118: prototype declaration
Seems to be because my /usr/include/math.h file does indeed support
matherr but calls the exception structure as "struct __exception". Seems
that dejagnu's configure then is getting confused and not doing the best
thing. It claims "no" in checking for matherr support so
tcl/unix/tclMtherr.c tries to compile in its own "int matherr(struct
exception *xPtr)" function which breaks the fact that
/usr/include/math.h does indeed support matherr and in fact defines the
function as "int matherr __P ((struct __exception *));" where the
__exception struct is:
struct __exception
{
int type;
char *name;
double arg1;
double arg2;
double retval;
};
and claims this is SVID style error handling.
Is my /usr/include/math.h matherr support an older style then than is
current or does dejagnu need to be hacked to support its matherr? What
have others done to make dejagnu build on LinuxPPC?
Thanks.