Am 09.03.2022 um 13:58 schrieb Ruediger Pluem:


On 3/9/22 11:34 AM, Rainer Jung wrote:
Am 09.03.2022 um 08:37 schrieb Ruediger Pluem:


On 3/8/22 10:09 PM, Rainer Jung wrote:



You gcc 4.8 workaround for _Thread_local still looks good.

Solaris builds and all unit tests not yet done but compiles fine for all my 
Linuxes.

Thanks!

Thanks for testing. I committed to trunk as r1898771 to throw it into our CI. 
If we need to tweak it further we can do later.

BTW: Once we have a final patch the same needs to be done for APR trunk and APR 
1.8.x.

Interesting: I did also compile APR trunk in my httpd release preparations but 
didn't observe the failure. This probably was due
to the fact, that our APR trunk configure does not decide to add -std=gnu11, so 
the test in the header file doesn't result in
_Thread_local being used.

Of course it still makes sense to apply the same patch (and also to other APR 
branches containing the thread local code). Just
wondering, whether the different handling of the"std" compiler flag for httpd 
and apr trunk is intentional.


Weird. I don't see -std=gnu11 added at all to my httpd build on RedHat 8.

gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)
autoconf --version
autoconf (GNU Autoconf) 2.69

But I have tested the patch and get AP_THREAD_LOCAL set to _Thread_local as it 
should.

Good. Concerning RHEL 8: I see the flag there neither due to:

RHEl7 :
checking for gcc -specs=/shared/build/autobuild/specs/specs.rhel7 option to enable C11 features... -std=gnu11

RHEL 8:
checking for gcc -specs=/shared/build/autobuild/specs/specs.rhel8 option to enable C11 features... none needed

The check for C11 was introduced in autoconf 2.70 as a new feature of "AC_PROG_CC", which we have in configure.in for httpd and for APR.

The observed behavioral difference between httpd configure and (my) APR trunk configure is due to the fact, that I generated my APR trunk configure with autoconf 2.69, so the check does not run there. But it would, once configure would be regenerated with modern autoconf. So indeed the thread local detection fix should go in APR as well.

Thanks and regards,

Rainer

Reply via email to