[PATCH] libsframe: testsuite: Fix testsuite build on Solaris [PR33168]
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Sat Aug 30 09:33:01 GMT 2025
Hi Alan,
> On Fri, Aug 15, 2025 at 10:08:38AM +0200, Rainer Orth wrote:
>> diff --git a/libsframe/configure.ac b/libsframe/configure.ac
>> --- a/libsframe/configure.ac
>> +++ b/libsframe/configure.ac
>> @@ -23,7 +23,6 @@ AC_CONFIG_SRCDIR(sframe.c)
>>
>> AC_CANONICAL_TARGET
>>
>> -AC_USE_SYSTEM_EXTENSIONS
>> AM_INIT_AUTOMAKE
>> AM_SILENT_RULES([yes])
>>
>
> I'd be inclined to fix the dejagnu.h "wait" problem some other way.
> Maybe
>
> #define wait deja_wait
> #include <dejagnu.h>
> #undef wait
>
> in the libsframe test files that include this header.
there is none, unfortunately. Apart from system headers, the tests only
include config.h (which is also included by the libsframe code itself,
not only the testsuite) and sframe-api.h, which is the libsframe
interface, thus doesn't seem appropriate for this.
My intention was to avoid having this snippet in 8 individual testcases,
thus the attempt to do this outside.
One could, of course, introduce a new sframe-test.h or some such which
would only include those lines for now. Seems a bit wasteful to me, but
maybe clearer.
I'm really uncertain if the argument about removing
AC_USE_SYSTEM_EXTENSIONS does hold water, though. It bears some risk,
of course, but as I said, it was only introduced into binutils for an
obscure platform long gone, and thus carried forward to most other
configure.ac's. OTOH, it's not in gdb/testsuite, libdecnumber,
readline, sim, and zlib, which makes me wonder even more about the
necessity.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Binutils
mailing list