Skip Menu |

Subject: acx_pthread.m4 needs to be updated
Download (untitled) / with headers
text/plain 1.3KiB
When trying to compile the conftest.c program produced by the current
src/config/ac-archive/acx_pthread.m4 using the most current Solaris
Studio compiler produces this error:

configure:5958: checking for the pthreads library -lpthread
configure:5991: /ws/on12-tools/SUNWspro/developerstudio12.5/bin/cc -o
conftest -m32 -xO4 -xchip=pentium -xregs=no%frameptr -mt -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -KPIC -DPIC -errtags=yes -errwarn=%all
-errwarn=no%E_DEPRECATED_ATT -errwarn=no%E_INIT_SIGN_EXTEND
-errwarn=no%E_ASSIGNMENT_TYPE_MISMATCH -m32 -I/usr/include/openldap -lc
-zdefs conftest.c -lpthread -lresolv >&5
"conftest.c", line 43: Error : Likely uninitialized read (variable th): main

This issue is solved with the latest version of acx_pthread.m4 See:;a=blob_plain;f=m4/ax_pthread.m4;a=history;f=m4/ax_pthread.m4

Specifically this commit fixed the problem:;a=commit;h=0728dab771b2a4da8032d5f0ade8870add680b39

It would be nice if krb5 src included the latest version of
Subject: git commit

Update autoconf archive macros

Update the macros imported from autoconf-archive to current versions.
Fixes an issue where ACX_PTHREAD fails on Solaris with the native
compiler because it detects an uninitialized read and treats it as an
Author: Greg Hudson <>
Commit: e458441f34e47a218ce7e60fef394821fa0a934d
Branch: master
src/aclocal.m4 | 6 +-
src/config/ac-archive/README | 52 +---
src/config/ac-archive/acx_pthread.m4 | 239 --------------
src/config/ac-archive/ax_pthread.m4 | 485 ++++++++++++++++++++++++++++
src/config/ac-archive/ax_recursive_eval.m4 | 56 ++++
src/config/ac-archive/relpaths.m4 | 155 ---------
src/ | 2 +-
7 files changed, 550 insertions(+), 445 deletions(-)