Subject: pkg/28890: pkg dovecot does not build with gnutls option
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pih@bsdmail.dk>
List: pkgsrc-bugs
Date: 01/06/2005 23:06:00
>Number:         28890
>Category:       pkg
>Synopsis:       pkg dovecot does not build with gnutls option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 06 23:06:00 +0000 2005
>Originator:     Peter Hansen
>Release:        NetBSD 2.0
>Organization:
>Environment:
NetBSD dhcppc4 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
The pkg dovecot does not build when the option 'gnutls' is given. Without it builds just fine. To me it looks like openssl is used as default if gnutls is not used, so it is still possible to build a ssl enanbled server.
>How-To-Repeat:
cd /usr/pkgsrc/mail/dovecot && make

[...]

Making all in login-common
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib      -DPKG_RUNDIR=\""/var/run/dovecot"\"     -DSBINDIR=\""/usr/pkg/sbin"\"  -I/usr/pkg/include -I/usr/include  -O2 -I/usr/pkg/include -I/usr/include -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -c ssl-proxy-gnutls.c
ssl-proxy-gnutls.c: In function `ssl_handshake':
ssl-proxy-gnutls.c:279: warning: implicit declaration of function `gnutls_handshake_get_direction'
ssl-proxy-gnutls.c: In function `initialize_state':
ssl-proxy-gnutls.c:301: warning: implicit declaration of function `gnutls_cert_type_set_priority'
ssl-proxy-gnutls.c: In function `ssl_proxy_new':
ssl-proxy-gnutls.c:317: warning: passing arg 2 of `gnutls_transport_set_ptr' makes pointer from integer without a cast
ssl-proxy-gnutls.c: In function `read_dh_parameters':
ssl-proxy-gnutls.c:415: warning: `gnutls_dh_params_set' is deprecated (declared at /usr/pkgsrc/mail/dovecot/work/.buildlink/include/gnutls/compat8.h:82)
ssl-proxy-gnutls.c: In function `read_rsa_parameters':
ssl-proxy-gnutls.c:441: warning: `gnutls_rsa_params_set' is deprecated (declared at /usr/pkgsrc/mail/dovecot/work/.buildlink/include/gnutls/compat8.h:77)
ssl-proxy-gnutls.c: In function `ssl_proxy_init':
ssl-proxy-gnutls.c:507: warning: implicit declaration of function `gnutls_certificate_allocate_cred'
ssl-proxy-gnutls.c:519: error: void value not ignored as it ought to be
ssl-proxy-gnutls.c:522: error: void value not ignored as it ought to be
ssl-proxy-gnutls.c: In function `ssl_proxy_deinit':
ssl-proxy-gnutls.c:544: warning: implicit declaration of function `gnutls_certificate_free_cred'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/dovecot/work/dovecot-0.99.12/src/login-common
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/dovecot/work/dovecot-0.99.12/src
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/dovecot/work/dovecot-0.99.12
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/dovecot/work/dovecot-0.99.12
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/dovecot
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/dovecot
>Fix: