From nobody@FreeBSD.org  Tue Oct 30 11:18:46 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4861716A46B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Oct 2007 11:18:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 31F1F13C4B3
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Oct 2007 11:18:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9UBIiNi051957
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Oct 2007 11:18:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9UBIiWj051956;
	Tue, 30 Oct 2007 11:18:44 GMT
	(envelope-from nobody)
Message-Id: <200710301118.l9UBIiWj051956@www.freebsd.org>
Date: Tue, 30 Oct 2007 11:18:44 GMT
From: Kyryll A Mirnenko <mirya@zoc.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/gnutls: build fails if opencdk is installed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117671
>Category:       ports
>Synopsis:       security/gnutls: build fails if opencdk is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    novel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 30 11:20:02 UTC 2007
>Closed-Date:    Mon Nov 05 20:02:49 UTC 2007
>Last-Modified:  Mon Nov 05 20:02:49 UTC 2007
>Originator:     Kyryll A Mirnenko
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD miryanote 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Mon Oct 29 21:20:10 EET 2007     root@miryanote:/usr/obj/usr/src/sys/MY-LITE  i386
>Description:
 cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../lgl -I../lgl -I../lib -I../includes -I../includes -I../lib/minitasn1 -I./openpgp -I/usr/local/include -I/usr/local/include -I/usr/local/include -I./opencdk -I/usr/local/include -fPIC -O2 -pipe -D_REENTRANT -D_THREAD_SAFE -pipe -I/usr/local/include -I/usr/local/include -O2 -pipe -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -MT gnutls_openpgp.lo -MD -MP -MF .deps/gnutls_openpgp.Tpo -c gnutls_openpgp.c  -fPIC -DPIC -o .libs/gnutls_openpgp.o
gnutls_openpgp.c: In function 'kbx_to_keydb':
gnutls_openpgp.c:151: warning: implicit declaration of function 'cdk_keydb_new_from_file'
gnutls_openpgp.c:155: warning: implicit declaration of function 'cdk_keydb_new_from_mem'
gnutls_openpgp.c: In function 'openpgp_pk_to_gnutls_cert':
gnutls_openpgp.c:264: error: 'CDK_KEY_USG_SIGN' undeclared (first use in this function)
gnutls_openpgp.c:264: error: (Each undeclared identifier is reported only once
gnutls_openpgp.c:264: error: for each function it appears in.)
gnutls_openpgp.c:266: error: 'CDK_KEY_USG_ENCR' undeclared (first use in this function)
gnutls_openpgp.c:282: warning: passing argument 4 of 'cdk_pk_get_mpi' makes pointer from integer without a cast
gnutls_openpgp.c:282: error: too many arguments to function 'cdk_pk_get_mpi'
gnutls_openpgp.c: In function '_gnutls_openpgp_raw_privkey_to_gkey':
gnutls_openpgp.c:327: warning: implicit declaration of function 'cdk_stream_tmp_new'
gnutls_openpgp.c:366: warning: passing argument 4 of 'cdk_pk_get_mpi' makes pointer from integer without a cast
gnutls_openpgp.c:366: error: too many arguments to function 'cdk_pk_get_mpi'
gnutls_openpgp.c:380: warning: passing argument 4 of 'cdk_sk_get_mpi' makes pointer from integer without a cast
gnutls_openpgp.c:380: error: too many arguments to function 'cdk_sk_get_mpi'
gnutls_openpgp.c: In function 'gnutls_openpgp_get_key':
gnutls_openpgp.c:511: warning: implicit declaration of function 'cdk_kbnode_write_to_mem_alloc'
gnutls_openpgp.c: In function 'gnutls_certificate_set_openpgp_key_mem':
gnutls_openpgp.c:582: error: too many arguments to function 'cdk_stream_tmp_from_mem'
gnutls_openpgp.c:582: warning: assignment makes integer from pointer without a cast
gnutls_openpgp.c:675: error: too many arguments to function 'cdk_stream_tmp_from_mem'
gnutls_openpgp.c:675: warning: assignment makes integer from pointer without a cast
Recent gnutls update to 2.0.2 breaks building WITH_OPENCDK=yes. Also, as far as it autodetects opencdk installed, it will also fail even without the option but simply with opencdk installed. Here's the log:

gnutls_openpgp.c: In function 'gnutls_certificate_set_openpgp_keyring_mem':
gnutls_openpgp.c:952: error: too many arguments to function 'cdk_stream_tmp_from_mem'
gnutls_openpgp.c:952: warning: assignment makes integer from pointer without a cast
*** Error code 1

Stop in /usr/ports/security/gnutls/work/gnutls-2.0.2/libextra.
*** Error code 1

Stop in /usr/ports/security/gnutls/work/gnutls-2.0.2/libextra.
*** Error code 1

Stop in /usr/ports/security/gnutls/work/gnutls-2.0.2.
*** Error code 1

Stop in /usr/ports/security/gnutls/work/gnutls-2.0.2.
*** Error code 1

Stop in /usr/ports/security/gnutls.
>How-To-Repeat:
1) install security/opencdk
2) try building security/gnutls
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->novel 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Oct 30 18:48:08 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117671 
State-Changed-From-To: open->feedback 
State-Changed-By: novel 
State-Changed-When: Fri Nov 2 20:43:54 UTC 2007 
State-Changed-Why:  
I've updated security/opencdk, so the problem should be fixed. 
Does gnutls build fine for you now? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117671 

From: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua>
To: bug-followup@freebsd.org,
 mirya@zoc.com.ua
Cc:  
Subject: Re: ports/117671: security/gnutls: build fails if opencdk is installed
Date: Mon, 5 Nov 2007 14:19:02 +0300

 Now builds well, thanks
State-Changed-From-To: feedback->closed 
State-Changed-By: novel 
State-Changed-When: Mon Nov 5 20:02:24 UTC 2007 
State-Changed-Why:  
It's confirmed the problem is fixed now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117671 
>Unformatted:
