Subject: GNUTLS + Solaris compilation error
To: None <tech-pkg@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 03/12/2004 18:42:43
--Apple-Mail-72--161567893
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi there,

does anyone have this issue with dovecot compilation, with Solaris?

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  -O -xO4 -xspace -xarch=v8plusa -xtarget=ultra2  
-I/usr/pkg/include -c master.c
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib       
-DPKG_RUNDIR=\""/var/run/dovecot"\"     -DSBINDIR=\""/usr/pkg/sbin"\"   
-I/usr/pkg/include  -O -xO4 -xspace -xarch=v8plusa -xtarget=ultra2  
-I/usr/pkg/include -c ssl-proxy.c
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib       
-DPKG_RUNDIR=\""/var/run/dovecot"\"     -DSBINDIR=\""/usr/pkg/sbin"\"   
-I/usr/pkg/include  -O -xO4 -xspace -xarch=v8plusa -xtarget=ultra2  
-I/usr/pkg/include -c ssl-proxy-gnutls.c
"ssl-proxy-gnutls.c", line 279: warning: implicit function declaration:  
gnutls_handshake_get_direction
"ssl-proxy-gnutls.c", line 301: warning: implicit function declaration:  
gnutls_cert_type_set_priority
"ssl-proxy-gnutls.c", line 317: warning: improper pointer/integer  
combination: arg #2
"ssl-proxy-gnutls.c", line 507: warning: implicit function declaration:  
gnutls_certificate_allocate_cred
"ssl-proxy-gnutls.c", line 519: operand cannot have void type: op "="
"ssl-proxy-gnutls.c", line 519: assignment type mismatch:
         int "=" void
"ssl-proxy-gnutls.c", line 522: operand cannot have void type: op "="
ssl-proxy-gnutls.c", line 522: assignment type mismatch:
         int "=" void
"ssl-proxy-gnutls.c", line 544: warning: implicit function declaration:  
gnutls_certificate_free_cred
cc: acomp failed for ssl-proxy-gnutls.c
*** Error code 2

Stop.
bmake: stopped in  
/usr/obj/pkgsrc/mail/dovecot/work.lazy/dovecot-0.99.10.4/src/login- 
common
*** Error code 1
[...]

I'm using these dependencies:

./configure --sysconfdir=/usr/pkg/etc --localstatedir=/var  
--with-ssldir=/usr/pkg/etc/openssl/certs --enable-ssl=gnutls  
--with-libiconv-prefix=/usr/pkg --with-libintl-prefix=/usr/pkg  
--enable-ipv6 --with-ldap --with-cyrus-sasl2 --host=sparc-sun-solaris2  
--prefix=/usr/pkg

gnutls-1.0.8
openldap-2.1.25
Sun One 8 cc tools

Regards,
   C.
-- 
  charlie@rubberduck.com - Melbourne, Australia
  http://rubberduck.com/~yeled/
  PGP: 0x14AA7941 || finger yeled@lazy.spodder.com

--Apple-Mail-72--161567893
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAUWn0qiZDwhSqeUERAojPAJ0bW5TgydI76XyeljVZtwedHuupdQCcC/NL
urDqsL7i3Y8xAFizQzoLRI0=
=yXcV
-----END PGP SIGNATURE-----

--Apple-Mail-72--161567893--