Bug 117671 - security/gnutls: build fails if opencdk is installed
Summary: security/gnutls: build fails if opencdk is installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Roman Bogorodskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 11:20 UTC by Kyryll A Mirnenko
Modified: 2007-11-05 20:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyryll A Mirnenko 2007-10-30 11:20:02 UTC
 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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-30 18:48:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->novel

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Roman Bogorodskiy freebsd_committer freebsd_triage 2007-11-02 20:43:54 UTC
State Changed
From-To: open->feedback

I've updated security/opencdk, so the problem should be fixed. 
Does gnutls build fine for you now?
Comment 3 Kyryll A Mirnenko 2007-11-05 11:19:02 UTC
Now builds well, thanks
Comment 4 Roman Bogorodskiy freebsd_committer freebsd_triage 2007-11-05 20:02:24 UTC
State Changed
From-To: feedback->closed

It's confirmed the problem is fixed now.