Matt Kraai wrote: > The changes for the math.h errors don't work, because @GNULIB_MATHL@ is > defined to 1, so the whole condition evaluates to true.
OK, I'm applying this additional attempt: 2009-07-27 Bruno Haible <br...@clisp.org> * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it. Reported by Matt Kraai <mkr...@beckman.com>. --- lib/math.in.h.orig 2009-07-27 21:20:08.000000000 +0200 +++ lib/math.in.h 2009-07-27 21:19:56.000000000 +0200 @@ -149,6 +149,7 @@ #if @GNULIB_MATHL@ || (!...@have_decl_cosl@ && !defined cosl) +# undef cosl extern long double cosl (long double x); #endif #if !...@gnulib_mathl@ && defined GNULIB_POSIXCHECK @@ -238,6 +239,7 @@ #if @GNULIB_MATHL@ || (!...@have_decl_logl@ && !defined logl) +# undef logl extern long double logl (long double x); #endif #if !...@gnulib_mathl@ && defined GNULIB_POSIXCHECK @@ -293,6 +295,7 @@ #if @GNULIB_MATHL@ || (!...@have_decl_sinl@ && !defined sinl) +# undef sinl extern long double sinl (long double x); #endif #if !...@gnulib_mathl@ && defined GNULIB_POSIXCHECK > I forgot to mention that there's also a problem determining the > dependencies of getdate.y. The command fails with the following error: > > getdate.y:116: error: negative width in bit-field > 'verify_error_if_negative_size__' > > I believe this is because time_t is unsigned on QNX. You mentioned this already in [1]. The response that Paul and Jim gave at that time is still valid. Bruno [1] http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00161.html