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

Lukas Slebodnik lslebodn at redhat.com
Mon Oct 26 13:37:22 UTC 2015


On (26/10/15 14:34), Pavel Březina wrote:
>On 10/26/2015 01:21 PM, Lukas Slebodnik wrote:
>>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.
>>>
>>BTW. Do you want this patch also to 1.13 branch?
>
>Yes.
>
OK

sssd-1-13:
* 807df8db5b74e58ae8f83fbfd6ac2cc3cd41daf8

LS


More information about the sssd-devel mailing list