[SSSD] [PATCH] BUILD: Fix detection of pthread with strict CFLAGS

Lukas Slebodnik lslebodn at redhat.com
Mon Oct 26 12:20:39 UTC 2015


On (26/10/15 13:15), Pavel Březina wrote:
>On 10/26/2015 12:28 PM, Lukas Slebodnik wrote:
>>ehlo,
>>
>>If the configure was called with stricter flags (-Werror=unused-variable)
>>then configure script did not detect tread safe initialisation.
>>As a result of this client code was not build with mutexes.
>>
>>conftest.c: In function 'main':
>>conftest.c:39:17: error: unused variable 'm' [-Werror=unused-variable]
>>  pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
>>                  ^
>>cc1: all warnings being treated as errors
>>configure:15331: $? = 1
>>configure:15338: WARNING: Pthread library not found! Clients will not be thread safe...
>>
>>Simple patch is attached.
>>
>>LS
>
>Ack.
>
>I've been using this patch for a year or so since I wasn't to even compile
>sssd without it. But because noone else had this issue, I didn't pursue it
>further.
>
Local CI script PASSED.

master:
* f775337a7d4ca1c0be8eab683d0d753cbaee49e2

LS


More information about the sssd-devel mailing list