[Pkg-gnutls-maint] libgcrypt11 and threads

Andreas Metzler ametzler at downhill.at.eu.org
Wed Feb 28 20:31:46 CET 2007


On 2007-02-28 Cai Qian <caiqian at debian.org> wrote:
[...]
> Yes, I also have tried with libpth-dev installed but without luck. This is the
> failed test program.

> ==test.c==
> #include <gnutls/openssl.h>
> #include <errno.h>
> #include <pthread.h>

> GCRY_THREAD_OPTION_PTHREAD_IMPL;
[...]
> ==Compiling==
> gcc -o test -lgnutls-openssl test.c

> ==Error messages==
> test.c:5: warning: data definition has no type or storage class
> test.c: In function `main':
> test.c:11: error: `GCRYCTL_SET_THREAD_CBS' undeclared (first use in this function)
[...]

GCRY_THREAD_OPTION_PTHREAD_IMPL and GCRYCTL_SET_THREAD_CBS are not
part of the gnutls API (or the gnutls OpenSSL compatibilty API), you'd
need to include gcrypt.h to be able to use it.

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Pkg-gnutls-maint mailing list