can't compile dejagnu-980528 to run egcs testsuites
Jeffrey A Law
law@cygnus.com
Fri Aug 28 00:44:00 GMT 1998
In message < 35E5B952.B5A9857F@chpc.utah.edu >you write:
> 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:
This would be an autoconf or possibly a problem with configure.in in
the tcl subdir. You'll actually have to grope around the
configure/configure.in files to find out why it didn't find/like your
math.h
jeff
More information about the Gcc
mailing list