Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77131 - Dovecot doesn't build with -ssl -gnutls USE flags
Summary: Dovecot doesn't build with -ssl -gnutls USE flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-08 05:13 UTC by Alexander Skwar
Modified: 2005-01-08 11:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2005-01-08 05:13:57 UTC
[14:12:56 alexander@server:~/mldonkey-incoming] $ USE=-ssl sudo emerge -vat dovecot

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild   R   ] net-mail/dovecot-0.99.12  -debug -gnutls -ipv6 -ldap +mbox -mysql +nopop3d +pam -postgres -sasl -ssl* -vpopmail 0 kB
[...]

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib   -DPKG_RUNDIR=\""/var/run/dovecot"\"   -DSBINDIR=\""/usr/sbin"\"    -O2 -march=athlon-xp -pipe -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast  -c ssl-proxy-openssl.c
ssl-proxy-gnutls.c: In function `ssl_handshake':
ssl-proxy-gnutls.c:279: Warnung: implizite Deklaration der Funktion 
Comment 1 Alexander Skwar 2005-01-08 05:13:57 UTC
[14:12:56 alexander@server:~/mldonkey-incoming] $ USE=-ssl sudo emerge -vat dovecot

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild   R   ] net-mail/dovecot-0.99.12  -debug -gnutls -ipv6 -ldap +mbox -mysql +nopop3d +pam -postgres -sasl -ssl* -vpopmail 0 kB
[...]

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib   -DPKG_RUNDIR=\""/var/run/dovecot"\"   -DSBINDIR=\""/usr/sbin"\"    -O2 -march=athlon-xp -pipe -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast  -c ssl-proxy-openssl.c
ssl-proxy-gnutls.c: In function `ssl_handshake':
ssl-proxy-gnutls.c:279: Warnung: implizite Deklaration der Funktion »gnutls_handshake_get_direction«
ssl-proxy-gnutls.c: In function `initialize_state':
ssl-proxy-gnutls.c:301: Warnung: implizite Deklaration der Funktion »gnutls_cert_type_set_priority«
ssl-proxy-gnutls.c: In function `ssl_proxy_new':
ssl-proxy-gnutls.c:317: Warnung: Verarbeiten des Argumentes 2 von »gnutls_transport_set_ptr« erzeugt Zeiger von Ganzzahl ohne Typkonvertierung
ssl-proxy-gnutls.c: In function `read_dh_parameters':
ssl-proxy-gnutls.c:415: Warnung: »gnutls_dh_params_set« ist veraltet (deklariert bei /usr/include/gnutls/compat8.h:82)
ssl-proxy-gnutls.c: In function `read_rsa_parameters':
ssl-proxy-gnutls.c:441: Warnung: »gnutls_rsa_params_set« ist veraltet (deklariert bei /usr/include/gnutls/compat8.h:77)
ssl-proxy-gnutls.c: In function `ssl_proxy_init':
ssl-proxy-gnutls.c:507: Warnung: implizite Deklaration der Funktion »gnutls_certificate_allocate_cred«
ssl-proxy-gnutls.c:519: Fehler: void-Wert nicht ignoriert wie es sein sollte
ssl-proxy-gnutls.c:522: Fehler: void-Wert nicht ignoriert wie es sein sollte
ssl-proxy-gnutls.c: In function `ssl_proxy_deinit':
ssl-proxy-gnutls.c:544: Warnung: implizite Deklaration der Funktion »gnutls_certificate_free_cred«
make[3]: *** [ssl-proxy-gnutls.o] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/dovecot-0.99.12/work/dovecot-0.99.12/src/login-common'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/dovecot-0.99.12/work/dovecot-0.99.12/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/dovecot-0.99.12/work/dovecot-0.99.12'
make: *** [all-recursive-am] Fehler 2

!!! ERROR: net-mail/dovecot-0.99.12 failed.


When I build with USE=ssl, it compiles fine.

So, either this bug should be fixed, or it shouldn't be possible to USE=-ssl.


[14:16:18 alexander@server:~/tmp/muell] $ emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-ck1.ASN.viele-module i686)
=================================================================
System uname: 2.6.10-ck1.ASN.viele-module i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 10 2004, 20:47:21)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.4_p6, 1.7.9, 1.9.3, 1.6.3, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox sfperms"
GENTOO_MIRRORS="http://localhost/~alexander/gentoo-files/ http://php2.ath.cx/~askwar/gentoo-files/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X acl adns alsa apache2 apm arts artswrappersuid async avi bluetooth bzlib cairo calendar cddb cdparanoia cdr cdrom codecs crypt cscope cups curl curlwrappers dga diet divx4linux djbfft encode esd ethereal evo exif fam fbcon fbdev ffmpeg fftw flac flash foomaticdb foreign-package foreign-sysvinit ftp fwdzone gd gdbm gif gimp gimpprint gmail gnokii gnome gphoto2 gpm gstreamer gtk gtk2 guile hal iconv imagemagick imap imlib immqt-bc irmc java javascript jpeg junit kde libedit libwww lzo lzw lzw-tiff mad maildir mailwrapper matroska matrox mbox mime mmap mmx mng mozilla mp3 mpeg ncurses network nls no-old-linux no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl offensive oggvorbis opengl opie oss pam parse-clocks pcntl pcre pda pdflib perl pic pie png posix ppds python qt quicktime quotes readline real recode samba sasl shared slang sockets spell sse ssl svg sysvipc tcltk tcpd tetex theora tiff truetype unicode usb videos vim-with-x wmf xchattext xfs xine xml xml2 xmms xv xvid zlib video_cards_matrox linguas_de"
Comment 2 Alexander Skwar 2005-01-08 05:18:06 UTC
Ah!

No, the problem is, that it detected the presence of GNUTLS on my system during the configure run:

[...]
config.status: creating config.h
config.status: executing default-1 commands

Install prefix ...................... : /usr
File offsets ........................ : 64bit
Building with SSL support ........... : yes (GNUTLS)
Building with IPv6 support .......... : no
Building with pop3 server ........... : no
Building with user database modules . : static passwd passwd-file (modules)
Building with password lookup modules : passwd passwd-file shadow pam (modules)
make  all-recursive


Since dovecot doesn't support GNUTLS, specifiying "USE=-gnutls -ssl" should make sure that GNUTLS isn't used.

Here's the compile output with LANG=C, sorry about that...



i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib   -DPKG_RUNDIR=\""/var/run/dovecot"\"   -DSBINDIR=\""/usr/sbin"\"    -O2 -march=athlon-xp -pipe -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast  -c ssl-proxy-openssl.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/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/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'
make[3]: *** [ssl-proxy-gnutls.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/dovecot-0.99.12/work/dovecot-0.99.12/src/login-common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dovecot-0.99.12/work/dovecot-0.99.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dovecot-0.99.12/work/dovecot-0.99.12'
make: *** [all-recursive-am] Error 2

!!! ERROR: net-mail/dovecot-0.99.12 failed.
Comment 3 Grant Goodyear (RETIRED) gentoo-dev 2005-01-08 11:47:58 UTC
Please try w/ .13.  According to the release notes (http://www.dovecot.org/list/dovecot/2005-January/005889.html), I believe 
that this problem should be fixed now.  Add a note to this bug if you still have problems, and I'll reopen it.