[Pkg-gnutls-maint] libgcrypt11 and threads

Cai Qian caiqian at debian.org
Wed Feb 28 09:59:35 CET 2007


Hi,

From: Andreas Metzler <ametzler at downhill.at.eu.org>
Subject: Re: [Pkg-gnutls-maint] libgcrypt11 and threads
Date: Mon, 26 Feb 2007 19:48:44 +0100

> On 2007-02-23 Cai Qian <caiqian at debian.org> wrote:
> > Does libgcrypt11 compiled with multiple threads enable?
> 
> Afaik yes, I think I tested this recently in response to a bug report.
> 
> > I have tried to upload the latest gkrellm package, but it failed in
> > my x86_64 machine with the following errors,
> 
> > Checking for gnutls... 
> > test.c:5: warning: data definition has no type or storage class
> [...]
> 
> I would try to find out what actually fails *here* (Perhaps missing
> pth?); config.log should be helpful.

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;

int main()
	{
	SSL_METHOD	*ssl_method  = NULL;

	gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
	gnutls_global_init();

	SSLeay_add_ssl_algorithms();
	SSL_load_error_strings();
	if ((ssl_method = SSLv23_client_method()) == NULL)
		return 1;
	return 0;
	}

==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)
test.c:11: error: (Each undeclared identifier is reported only once
test.c:11: error: for each function it appears in.)
test.c:11: error: `gcry_threads_pthread' undeclared (first use in this function)

Cai Qian



More information about the Pkg-gnutls-maint mailing list