libgcrypt-1.8.2: glitch in configure ??
nbsd4ever at gmail.com
Wed Jan 10 10:17:41 CET 2018
Trying to build libgcrypt from source, but it failed with:
In file included from t-lock.c:31:0:
/usr/local/include/pthread.h:285:42: error: conflicting types for ‘pthread_t’
typedef struct pthread_st *pthread_t;
In file included from /usr/include/sys/types.h:360:0,
/usr/include/pthread_types.h:65:30: note: previous declaration of
‘pthread_t’ s here
typedef struct __pthread_st *pthread_t;
In case it's important, uname -srp ==>> NetBSD 7.0.2 i386
There are two pthread.h files on this machine:
/usr/include/pthread.h and /usr/local/include/pthread.h
Somehow the system headers and local headers seem to be getting mixed.
I don't know how to correctly fix the problem, but by editing line 31
of tests/t-lock.c and filling in the full path "/usr/include/pthread.h",
the build completed.
I don't know if it is related to the above problem or not, but "make check"
halted at "PASS: curves". After an hour, I stopped it with ^C:
gmake: *** [Makefile:864: check-TESTS] Interrupt
gmake: *** [Makefile:987: check-am] Interrupt
gmake: *** [Makefile:477: check-recursive] Interrupt
More information about the Gnupg-users